#ifndef __MY_GH615_GUI_UTIL
#define __MY_GH615_GUI_UTIL

#include "HCFGStorage.h"
#include "HMenus.h"

#include "gh615.h"

#include "gh_TR.h"
#include "gh_WP.h"
#include "gh_utils.h"

//[ghoz_WPEdit.cpp]
bool EditWP( PGH615_Waypoint p, PTForm par );

//[ghoz_Main.cpp]
extern PHStorageLink       Opt;

/*******************************************************************
   DEFS
 *******************************************************************/
#define GOPT( nm, def )  Opt->Read( nm, def )
#define SOPT( nm, val )  Opt->Write( nm, val )
#define OPT_KEY( nm )    Opt->SubKey( nm )

#if defined(LNG_USED)
  #define LNG       TranslatePSTR
  #define SLNG( v ) TranslateSTR( v ).c_str()
#else
  #define LNG( v )  v
  #define SLNG( v ) v
#endif

#endif